#-*- codeing = utf-8 -*-
#@Time : 2020/8/24 17:31
#@Author : 阳某
#@File : test.py
#@Software : PyCharm



import requests
from fake_useragent import UserAgent
import re
import json

url = 'https://tf.istrongcloud.com/release/index-fj.html?yj=true&from=timeline&isappinstalled=0'
headers = {
    "User-Agent":UserAgent().chrome
}
response = requests.get(url,headers = headers)
text = response.text

moban1 = re.findall('<script>.*?= (.*?)</script>',text,re.S)[0]
moban1 = moban1[:-2]
data = json.loads(moban1)
print(data)

# with open ('result.json','w',encoding='utf-8') as f:
#     txt = json.dumps(data,ensure_ascii=False,indent=4)
#     f.write(txt)
